﻿using Ndns.ServerHost.Abstractions.Services;
using System;
using System.Threading.Tasks;

namespace Ndns.ServerHost.Abstractions
{
    public interface IMiddleware : IDisposable
    {
        void Start();

        void RegisterServices(IServiceCollection services, RequestDelegate next);

        Task InvokeAsync(DnsContext context);
        
    }
}
